//函数式数组，要求返回用户界面，而用户界面使用JSX进行构建
import type { FunctionalComponent } from "vue";

  
export const LearnJsx:FunctionalComponent<{},{testEventName:(obj:{name:string})=>void}> =(props,context)=>{
    return (
        <button onClick={()=>{context.emit("testEventName",{name:"张三"})}}>emit</button>
    )
}